<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2015, http://www.gooraye.net. All Rights Reserved.
// |-----------------------------------------------------------------------------------


namespace app\admin\model;
use think\Model;

/**
 * 基本用户成员信息表
 */
class Message extends Model {

	/**
	 * 公告消息
	 */
	const TYPE_FOR_SYSTEM = 0;
	/**
	 * 故障消息
	 */
	const TYPE_FOR_FAULT= 1;
	/**
	 * 注册成功消息
	 */
	const TYPE_FOR_REGISTER_SUCCESS = 2;

	const MESSAGE_PUSH    = "推送消息";
	const MESSAGE_SYSTEM  = "系统消息";
	const MESSAGE_ORDER   = "订单通知";
	const MESSAGE_EXPRESS = "物流通知";
	const MESSAGE_PRIZE   = "中奖消息";
	const MESSAGE_OTHER   = "其他消息";
	const MESSAGE_CALL    = "私信消息";
	const MESSAGE_BBS     = "论坛消息";

	const MESSAGE_SYSTEM_ACTIVITY = 'system_message';
	const MESSAGE_ORDER_ACTIVITY  = 'order_message';
	const MESSAGE_BBS_ACTIVITY    = 'bbs_message';
	const MESSAGE_CALL_ACTIVITY   = 'call_message';

	/*
	 * 用户模型自动完成 
	 * 
	 * */
	//framework bug
	// protected $auto = [
	// 		array('create_time', NOW_TIME, self::MODEL_INSERT),
	// ];
}